﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace DCTAccess.Business.Percent
{
    public class Percent
    {
        #region Private Members
        private int _configID = -1;
        private int _numOfPeople = -1;
        private decimal _percentConfig = 0;
        #endregion

        #region Constructor
        public Percent() { }

        public Percent(DataRow percentInfo)
        {
            this.ConfigID = Convert.ToInt32(percentInfo["ConfigID"].ToString());
            this.NumOfPeople = Convert.ToInt32(percentInfo["NumOfPeople"].ToString());
            this.PercentConfig = Convert.ToDecimal(percentInfo["percent"].ToString());
        }
        #endregion

        #region Public Properties
        public decimal PercentConfig
        {
            get { return _percentConfig; }
            set { _percentConfig = value; }
        }
        public int NumOfPeople
        {
            get { return _numOfPeople; }
            set { _numOfPeople = value; }
        }
        public int ConfigID
        {
            get { return _configID; }
            set { _configID = value; }
        }       
        #endregion
    }
}
